package com.woniuxy.carlife.carlifeuserweb.util;

import lombok.Data;
import org.omg.PortableInterceptor.SUCCESSFUL;

/**
 * @author zjq
 * @ClassName:SendAuthCodeUtil
 * @Description:响应消息
 * @date 2021/4/7 11:56
 **/


public enum StatusMessageEnum {


    OK("成功"),
    ERROR("失败"),
    LOGINERROR("用户名或密码错误"),
    ACCESSERROR("权限不足"),
    CAN_NOT_BE_EMPTY("不能为空"),
    ACCOUNT_EXISTS("账户已存在"),
    ACCOUNT_DOES_NOT_EXIST("账户不存在"),
    PHONE_NUMBER_ALREADY_EXISTS("手机号已存在"),
    PHONE_NUMBER_DOES_NOT_EXIST("手机号不存在"),
    WRONG_PASSWORD("密码错误"),
    VERIFICATION_CODE_ERROR("验证码错误"),
    LOGIN_SUCCESSFUL("登录成功"),
    LOGIN_FAILED("登录失败"),
    REGISTRATION_SUCCESS("注册成功"),
    REGISTRATION_FAILED("注册失败"),
    QUERY_IS_EMPTY("查询为空"),
    SEARCH_SUCCESSFUL("查询成功"),
    ADDED_SUCCESSFULLY("新增成功"),
    ADD_FAILED("新增失败"),
    SUCCESSFULLY_DELETED("删除成功"),
    FAILED_TO_DELETE("删除失败"),
    SUCCESSFULLY_MODIFIED("修改成功"),
    FAIL_TO_EDIT("修改失败"),
    NOT_LOGGED_IN("未登录"),
    LOGOUT("退出登录"),
    PASSWORD_FORMAT_IS_WRONG("密码格式错误：密码以字母开头包含字母数字和._ 6~19位"),
    INCORRECT_ACCOUNT_FORMAT("账号格式错误：账号必须包含字母数字可包含 _ 6~19位"),
    MALFORMED_PHONE_NUMBER("手机格式错误");

    private String message;


    StatusMessageEnum(String message) {
        this.message = message;

    }

    @Override
    public String toString() {
        return "返回信息：" + message;
    }
}
